home *** CD-ROM | disk | FTP | other *** search
- Path: RRZ.Uni-Koeln.DE!a2233495
- From: a2233495@rrz.Uni-Koeln.DE (Joerg Bleimann)
- Newsgroups: comp.sys.cbm
- Subject: Scanning strings under BASIC, avoiding INPUT "?"
- Date: 27 Mar 1996 20:49:33 GMT
- Organization: Regional Computing Center, University of Cologne
- Message-ID: <4jc9kt$h3p@news.rrz.uni-koeln.de>
- Reply-To: a2233495@athena.rrz.uni-koeln.de
- NNTP-Posting-Host: hpw1.rrz.uni-koeln.de
- X-Newsreader: TIN [version 1.2 PL2]
-
- Hi Freaks!
-
- I have got a problem with COMMODORE BASIC 2.0: I started programming a text
- adventure on the C 64 and do not know how to make the computer recognize the
- latter part of a bipartite command string (for example "TAKE BOTTLE"). How
- can I search the whole string for empties (" ") to redefine the part right
- from the empty as a new string? ASC only recognizes the first character of a
- string, VAL takes only number characters into account... and machine language
- is all Greek to me!
- Yet another question: in more modern BASIC dialects, one can avoid the ? after
- INPUT by typing a comma before the variable; in CBM BASIC 2.0 this would pro-
- duce a SYNTAX ERROR. Are there any ways to get rid of the question mark using
- BASIC on the C 64?
-
- See you in Khyberspace!
-
- Joerg "Yadgar Achakzai" Bleimann
-
- The Virtual Afghan
-
-
-